package com.voltsss.email;

import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;

import com.voltsss.utils.PropertiesUtil;


public class MailAuthenticator extends Authenticator {
	
	private String mailAddress;
	private String mailPassword;
	
	public MailAuthenticator(String mailAddress,String mailPassword){
	    this.mailAddress = mailAddress;
	    this.mailPassword = mailPassword;
	}

	protected PasswordAuthentication getPasswordAuthentication() {
		return new PasswordAuthentication(mailAddress, mailPassword);
	}
}
